@import "module/variable";
@import "module/initCSS";
@import "module/header";
@import "module/user_tabs";
@import "module/footer";


$rightTabTitleColor: #2058ca #cf5d00 #399f62 #7f399f #42b8e9;

.header {
    @include commonHeader2();
}

.user-tabs {
    @include userTabs();
}

.main-link-list {
    li {
        margin-top: 2px;
        a {
            display: block;
            font-size: 13px;
            line-height: 43px;
            background: #eaeaea;
            padding: 0 50px 0 16px;
            position: relative;
            z-index: $zindexMin;
            -webkit-transition: transform .3s ease-in-out;
            -moz-transition: transform .3s ease-in-out;
            -ms-transition: transform .3s ease-in-out;
            -o-transition: transform .3s ease-in-out;
            transition: transform .3s ease-in-out;
            &:hover{
                -webkit-transform: translateX(-5px);
                -moz-transform: translateX(-5px);
                -ms-transform: translateX(-5px);
                -o-transform: translateX(-5px);
                transform: translateX(-5px);
            }
            .fa {
                font-size: 20px;
                color: #9e9e9e;
                position: absolute;
                z-index: $zindexMin;
                top: 50%;
                right: 30px;
                -webkit-transform: translateY(-50%);
                -moz-transform: translateY(-50%);
                -ms-transform: translateY(-50%);
                -o-transform: translateY(-50%);
                transform: translateY(-50%);
            }
        }
    }
}

.right-link-block {
    overflow: hidden;

    &:nth-of-type(2) {
        margin-top: 12px;
    }

    .title {
        font-size: 15px;
        font-weight: normal;
        line-height: 31px;
        color: #ffffff;
        background: #006699;
        padding: 0 10px 0 18px;
    }
    .list {
        li {
            line-height: 28px;
            padding: 0 10px 0 18px;
            a {
                color: #000;
                &:hover{
                    color: #28949c;
                }
            }
        }
    }
}



.carousel {
    height: 180px;
    margin-bottom: 12px;
    .carousel-control {
        opacity: 1;
        filter: alpha(opacity=100);
        background: none;
        &.left:hover {
            background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0001) 100%);
            background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0001) 100%);
            background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.2)), to(rgba(0, 0, 0, 0.0001)));
            background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.0001) 100%);
            background-repeat: repeat-x;
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
        }

        &.right:hover {
            background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.2) 100%);
            background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.2) 100%);
            background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.2)));
            background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.2) 100%);
            background-repeat: repeat-x;
            filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
        }
        i {
            display: block;
            position: absolute;
            z-index: $zindexMin;
            top: 50%;
            width: 20px;
            height: 34px;
            background: url(../images/home/slide_icon.png) no-repeat 0 0 transparent;
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
            transform: translateY(-50%);
        }
        &.left {
            i {
                left: 15px;
            }
        }

        &.right {
            i {
                right: 15px;
                background-position: -20px 0;
            }
        }
    }

    .carousel-indicators {
        bottom: 0;
        margin-bottom: 8px;
        li {
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            background: #bfbfbf;
            width: 8px;
            height: 8px;
            border: 1px solid #bfbfbf;
            margin: 0 5px;
            &.active {
                background: #ffffff;
                border-color: #ffffff;
            }
        }
    }
}

.line-row {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 50px;
    .line-col1 {
        float: left;
        width: 50%;
        padding: 0 50px 0 50px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
    .line-col2 {
        float: left;
        width: 50%;
        padding:0 50px 0 50px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .line-col3{
        width:100%;
        padding: 0 60px 0 50px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .b-title{
        font-size: 18px;
        font-weight:normal;
        color: #303030;
        margin-bottom: 30px;
        margin-top: 26px;
        position: relative;
        z-index: 5;
        span{
            font-size: 13px;
            position: relative;
            z-index: $zindexMin;
            top: 1px;
        }
        a{
            position: absolute;
            z-index: 5;
            bottom: 0;
            right: 0;
            font-size: 13px;
            color: #006699;
        }
    }
}

.news-list{
    li{
        position: relative;
        z-index: $zindexMin;
        padding: 0 0 18px 0;
        margin-bottom: 18px;
        &:after{
            display: block;
            content: '.';
            @extend .hideFont;
            height: 1px;
            width: 60%;
            background: #eaeaea;
            position: absolute;
            bottom:0;
            left:0;
        }

        &:first-child{
            padding-top: 12px;
        }

        &:last-child{
            &:after{
                display: none;
            }
        }
        
        h3{
            a{
                font-size: 15px;
                font-weight: normal;
                text-decoration: none;
                color: #303030;
                &:hover{
                    color: #28949c;
                }
            }
        }
        p{
            color: #858585;
            margin-top: 3px;
        }
        .download{
            &:nth-of-type(1){
                margin-top: 18px;
            }
            line-height: 1.2;
            a{
                color: #006699;
                text-decoration: none;
            }
        }
    }
}

.open-courses{
    li{
        margin-bottom: 23px;
        &:last-of-type{
            margin-bottom: 0;
        }
        h3{
            margin-bottom: 5px;
            a{
                font-size: 15px;
                font-weight: bold;
                color: #303030;
            }
        }
        p{
            font-size: 13px;
            color: #303030;
        }
    }
}

.hot-knowledge{
    li{
        margin-bottom: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        &:last-of-type{
            margin-bottom: 0;
        }
        span{
            display: inline-block;
            background: #d0d0d0;
            font-size: 13px;
            color: #201918;
            line-height: 18px;
            padding: 0 12px;
            border-radius: 3px;
            &.type1{
                background: #c9d8a0;
            }
            &.type2{
                background: #a7c6de;
            }
            &.type3{
                background: #d3c9e6;
            }
        }
        a{
            font-size: 15px;
            color: #303030;
            line-height: 18px;
        }
    }
}

.outstanding-box{
    position: relative;
    z-index: 5;
    height: 105px;
    padding-top: 6px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    .dir{
        display: block;
        width: 12px;
        height: 51px;
        position: absolute;
        z-index: 6;
        top: 12px;
        font-size: 0;
        line-height: 0;
        color: transparent;
        background: url(../images/home/outstanding_turn.jpg) no-repeat 0 center transparent;
        opacity: 0.7;
        filter: alpha(opacity=70);
        &:hover{
            opacity: 1;
            filter: alpha(opacity=100);
        }
        &.prev{
            left: 0;
        }
        &.next{
            right: 0;
            background-position: -12px 0;
        }
    }
    .overflow{
        position: absolute;
        z-index:5;
        top: 5px;
        left:0;
        width: 100%;
        -webkit-transition: all .6s ease-in-out;
        -moz-transition: all .6s ease-in-out;
        -ms-transition: all .6s ease-in-out;
        -o-transition: all .6s ease-in-out;
        transition: all .6s ease-in-out;
    }
    .outstanding-list{
        position: absolute;
        z-index: 5;
        top: 5px;
        left: 0;
        width: 100%;
        &:nth-of-type(1) {
            left: 0;
        }
        &:nth-of-type(2){
            left: 100%;
        }
        &:nth-of-type(3){
            left: 200%;
        }
        &:nth-of-type(4){
            left: 300%;
        }
        &:nth-of-type(5){
            left: 400%;
        }
        &:nth-of-type(6){
            left: 500%;
        }
        ul{
            display: -webkit-flex;
            display: flex;
            -webkit-flex-flow: row nowrap;
            flex-flow: row nowrap;
            -webkit-justify-content: flex-start;
            justify-content: flex-start;
            -webkit-align-items: flex-start;
            align-items: flex-start;
            -webkit-align-content: flex-start;
            align-content: flex-start;
            li{
                -webkit-flex: 1 1 auto;
                flex: 1 1 auto;
                width: 100%;
                overflow: hidden;
                text-align: center;
                img{
                    display: inline-block;
                    width: 62px;
                    height: 62px;
                    border-radius: 100%;
                }
                div{
                    a{
                        display: inline-block;
                        font-size: 15px;
                        color: #303030;
                        text-align: center;
                        padding: 15px 5px 0;
                        white-space: nowrap;
                        overflow: hidden;
                        -ms-text-overflow: ellipsis;
                        text-overflow: ellipsis;
                        box-sizing: border-box;
                    }
                }
            }
        }
    }
}

.top-question{
    li{
        margin-bottom: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        &:last-of-type{
            margin-bottom: 0;
        }
        span{
            display: inline-block;
            background: #e8c1bb;
            font-size: 13px;
            color: #201918;
            line-height: 18px;
            padding: 0 12px;
            border-radius: 3px;
        }
        a{
            font-size: 15px;
            color: #303030;
            line-height: 18px;
        }
    }
}

.reading-club{
    .rci{
        margin-bottom: 20px;
        &:last-child{
            margin-bottom: 0;
        }
        .bimg{
            float: left;
            img{
                display: block;
                width: 49px;
                height: 64px;
            }
        }
        .bname{
            display: table-cell;
            height: 64px;
            vertical-align: middle;
            padding: 0 0 0 16px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            font-size: 15px;
            color: #303030;
            text-decoration: none;
            span{
                &:hover{
                    color: #28949c;
                }
            }
        }
    }
}

.sharing-time-list{
    .sharing-time{
        position: relative;
        z-index: $zindexMin;
        padding: 0 0 18px 0;
        margin-bottom: 20px;
        &:after{
            display: block;
            content: '.';
            @extend .hideFont;
            height: 1px;
            width: 80%;
            background: #eaeaea;
            position: absolute;
            bottom:0;
            left:0;
        }

        &:first-child{
            padding-top: 12px;
        }
        
        &:last-child{
            &:after{
                display: none;
            }
        }

        h3{
            font-weight: normal;
            color: #303030;
            a{
                font-size: 15px;
                &:hover{
                    color: #28949c;
                }
            }
        }
        p{
            color: #303030;
            margin-top: 3px;
        }
        div{
            color: #858585;
            width: 80%;
            line-height: 1.2;
            border-left: 3px solid #209ea7;
            padding: 2px 40px 2px 4px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            margin-top: 20px;
        }
    }
}

.training-list{
    .display-table{
        width: 100%;
        margin-bottom: 1px;
    }
    .training{
        background: #f0f0f0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 20px 20px 16px 20px;
        margin-bottom: 1px;
        h3{
            font-size: 15px;
            font-weight: normal;
            color: #303030;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            -ms-text-overflow: ellipsis;
            text-overflow: ellipsis;
            a{
                font-size: 15px;
                &:hover{
                    color: #28949c;
                }
            }
        }
        p{
            color: #858585;
            line-height: 1.2;
        }

        &.training2{
            display: table-cell;
            width: 50%;
            position: relative;
            z-index: $zindexMin;
            &:before{
                display: block;
                content: ' ';
                font-size:0;
                line-height:0;
                width: 1px;
                height: 100%;
                position: absolute;
                z-index: $zindexMin;
                left: -1px;
                top:0;
                background: #ffffff;
            }
        }
    }
}

.hot-knowledge-list{
    background: #f0f0f0;
    padding: 10px 0;
    li{
        float: left;
        width: 25%;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
        padding: 10px 0 10px 18px;
        a{
            color: #303030;
            text-decoration: none;
            i{
                font-weight:normal;
                font-size: 12px;
                color: #c0c0c0;
                margin-right: 6px;
                -webkit-transform: scale(0.7);
            }
            &:hover{
                color: #28949c;
                i{
                    color: #28949c;
                }
            }
        }
    }
}

.footer{
    @include commonFooter();
}